﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_General_Login : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

	protected void bntLogin_Click(object sender, EventArgs e)
	{
		var user = BLL.Authentication.Login(tbEmail.Text, tbPassword.Text, cbRememberMe.Checked);
		if (user == null)
			lblError.Visible = true;
		else Response.Redirect("/default.aspx");
	}
}